-- GENERATED SPELL FOR [Bonechewer Ripper] --


function spell0_17281(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(18501,pUnit)
pUnit:RegisterEvent('Sorts_17281', 5328, 1)
end

function Sorts_17281(pUnit, Event)
local choix_sorts_17281 = math.random(0, 0)
if choix_sorts_17281 == 0 then
pUnit:RegisterEvent('spell0_17281', 1, 1)
end
end

function mob17281_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17281', math.random(1500, 3000), 1)
end

function mob17281_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17281_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17281_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17281, 1, 'mob17281_Action')
RegisterUnitEvent(17281, 2, 'mob17281_Leave')
RegisterUnitEvent(17281, 3, 'mob17281_Kill')
RegisterUnitEvent(17281, 4, 'mob17281_Die')
